package xin.pan.strategy;

import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

public class DataXComponent {

    private static Configuration configuration;

    public static void main(String[] args) {
        ReaderConfiguration readerConfiguration = new JdbcReaderConfig("qweqweqweqweqew");
        WriterConfiguration writerConfiguration = new JdbcWriterConfig("writer");
        configuration = new Configuration(readerConfiguration,writerConfiguration);
        System.out.println(configuration.getConfig());
        System.out.println(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS")));
    }
}
